/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ShowEmployeeGridPanel.java
 *
 * Created on Feb 5, 2012, 10:55:33 PM
 */
package ui.components;

import entities.User;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import javax.swing.DefaultComboBoxModel;
import model.EmployeeTableModel;
import ui.panels.EmployeeManagementPanel;
import ui.panels.MessagePanel;
import ui.windows.RemedySchedulerFrame;

/**
 *
 * @author viev
 */
public class ShowEmployeeGridPanel extends javax.swing.JPanel {

    /** Creates new form ShowEmployeeGridPanel */
    public ShowEmployeeGridPanel(RemedySchedulerFrame mainFrame, EmployeeManagementPanel parentPanel) {
        this.mainFrame = mainFrame;
        this.parentPanel = parentPanel;
        initComponents();
        cellList = new ArrayList<CellGridPanel>();
    }
    
    public void setModel(EmployeeTableModel model) {
        this.model = model;
        includeModel();
    }
    
    public void includeModel() {
        cellList.clear();
        ArrayList<User> list = model.getStore();
        if (list != null && !list.isEmpty()) {
            if (empty) {
                this.removeAll();
                this.repaint();
                this.add(viewGrid);
                this.revalidate();
            }
            size = list.size();
            pageCount = size / numItemsPage;
            if (size % numItemsPage != 0) {
                pageCount++;
            }
            if (pageCount != 0) {
                Integer[] items = new Integer[pageCount];
                for (int i = 0; i < pageCount; i++) {
                    items[i] = i + 1;
                }
                pages = new DefaultComboBoxModel<Integer>(items);
            } else {
                pages = new DefaultComboBoxModel<Integer>();
            }
            cbPages.setModel(pages);
            for (User u : list) {
                cellList.add(new CellGridPanel(this, u));
            }
            int i = 0;
            employeeGrid.removeAll();
            this.repaint();
            for (CellGridPanel cell : cellList) {
                employeeGrid.add(cell);
                this.revalidate();
                i++;
                if (i == numItemsPage) {
                    break;
                }                
            }
            cellList.get(0).setSelectedUser();
        } else {
            this.removeAll();
            this.repaint();
            this.add(new MessagePanel("No information"));
            this.revalidate();
            empty = true;
        }
        bBack.setEnabled(false);
        if (pageCount > 1) {
            bNext.setEnabled(true);
        } else {
            bNext.setEnabled(false);
        }
        
        currentPage = 1;
    }
    
    public void swithPageAction() {
        int choise = cbPages.getSelectedIndex();
        currentPage = choise + 1;
        swithAction(currentPage);
    }
    
    public void backAction() {
        if (currentPage > 1) {
            swithAction(currentPage - 1);
        }
    }
    
    public void nextAction() {
        if (currentPage < pageCount) {
            swithAction(currentPage + 1);
        }
    }
    
    public void swithAction(int indexPage) {
        if (indexPage <= pageCount) {
            employeeGrid.removeAll();
            this.repaint();
            int index = (indexPage - 1) * numItemsPage;
            while (index < size) {
                employeeGrid.add(cellList.get(index));
                this.revalidate();
                index++;
            }
            currentPage = indexPage;
            cbPages.setSelectedItem(currentPage);
            if (currentPage != 1) {
                bBack.setEnabled(true);
            } else {
                bBack.setEnabled(false);
            }
            if (currentPage != pageCount) {
                bNext.setEnabled(true);
            } else {
                bNext.setEnabled(false);
            }
        }
    }
    
    public void setSelectedUser(User user) {
        this.selectedUser = user;
        parentPanel.setSelectedEmployee(user);
        if (user != null) {
            String[] roles = {"Administractor", "Department Head", "Employee"};
            String[][] levels = {{"Head", "Employee"},
                {"Head", "Immediate Head", "Next Immediate Head", "Junior Head "},
                {"Doctor", "Staff"}};
            String[] genders = {"male", "female"};
            SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/YYYY");
            lbID.setText(selectedUser.getLoginID());
            lbName.setText(selectedUser.getName());
            lbDep.setText(selectedUser.getDepartmentName());
            lbRole.setText(roles[selectedUser.getRole() - 2]);
            lbLevel.setText(levels[selectedUser.getRole() - 2][selectedUser.getLevel() - 1]);
            if (user.isMale()) {
                lbGender.setText(genders[0]);
            } else {
                lbGender.setText(genders[1]);
            }
            lbBirthDate.setText(dateFormat.format(user.getBirthDate()));
            lbPhone.setText(selectedUser.getPhone());
            lbEmail.setText(selectedUser.getEmailAddress());
            txaAddress.setText(selectedUser.getAddress());
        }
    }
    
    public void setSelectedItem(CellGridPanel item) {
        if (selectedItem != null) {
            selectedItem.setLock(false);
        }
        this.selectedItem = item;
    }
    
    private void showUpdate() {
        parentPanel.setSelectedEmployee(selectedUser);
        parentPanel.showEditEmployee();
    }
    
    private void deleteAction() {
        parentPanel.setSelectedEmployee(selectedUser);
        parentPanel.deleteEmployee();
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    private RemedySchedulerFrame mainFrame;
    private EmployeeManagementPanel parentPanel;
    private EmployeeTableModel model;
    private ArrayList<CellGridPanel> cellList;
    private User selectedUser;
    private CellGridPanel selectedItem;
    private DefaultComboBoxModel<Integer> pages;
    private int pageCount;
    public static int numItemsPage = 10;
    private int size;
    private int currentPage;
    private boolean empty;
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        viewGrid = new javax.swing.JSplitPane();
        viewDetails = new javax.swing.JScrollPane();
        details = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        lbPic = new javax.swing.JLabel();
        lbName = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        lbID = new javax.swing.JLabel();
        lbDep = new javax.swing.JLabel();
        lbRole = new javax.swing.JLabel();
        lbLevel = new javax.swing.JLabel();
        lbGender = new javax.swing.JLabel();
        lbBirthDate = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        lbPhone = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        lbEmail = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txaAddress = new javax.swing.JTextArea();
        bDelete = new javax.swing.JButton();
        bEdit = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        viewList = new javax.swing.JPanel();
        controler = new javax.swing.JPanel();
        bBack = new javax.swing.JButton();
        bNext = new javax.swing.JButton();
        cbPages = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        List = new javax.swing.JScrollPane();
        employeeGrid = new javax.swing.JPanel();

        setBackground(new java.awt.Color(255, 255, 255));
        setLayout(new java.awt.BorderLayout());

        viewGrid.setPreferredSize(new java.awt.Dimension(700, 459));

        viewDetails.setPreferredSize(new java.awt.Dimension(400, 457));

        details.setBackground(new java.awt.Color(51, 51, 51));

        jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.setLayout(new java.awt.BorderLayout());
        jPanel1.add(lbPic, java.awt.BorderLayout.CENTER);

        lbName.setFont(new java.awt.Font("Tahoma", 1, 14));
        lbName.setForeground(new java.awt.Color(204, 255, 204));
        lbName.setText("Name");

        jLabel2.setForeground(new java.awt.Color(204, 255, 204));
        jLabel2.setText("ID:");

        jLabel3.setForeground(new java.awt.Color(204, 255, 204));
        jLabel3.setText("Department:");

        jLabel4.setForeground(new java.awt.Color(204, 255, 204));
        jLabel4.setText("Role:");

        jLabel5.setForeground(new java.awt.Color(204, 255, 204));
        jLabel5.setText("Level:");

        jLabel6.setForeground(new java.awt.Color(204, 255, 204));
        jLabel6.setText("Gender:");

        jLabel7.setForeground(new java.awt.Color(204, 255, 204));
        jLabel7.setText("BirthDate:");

        lbID.setFont(new java.awt.Font("Tahoma", 1, 11));
        lbID.setForeground(new java.awt.Color(204, 255, 204));
        lbID.setText("value");

        lbDep.setFont(new java.awt.Font("Tahoma", 1, 11));
        lbDep.setForeground(new java.awt.Color(204, 255, 204));
        lbDep.setText("value");

        lbRole.setFont(new java.awt.Font("Tahoma", 1, 11));
        lbRole.setForeground(new java.awt.Color(204, 255, 204));
        lbRole.setText("value");

        lbLevel.setFont(new java.awt.Font("Tahoma", 1, 11));
        lbLevel.setForeground(new java.awt.Color(204, 255, 204));
        lbLevel.setText("value");

        lbGender.setFont(new java.awt.Font("Tahoma", 1, 11));
        lbGender.setForeground(new java.awt.Color(204, 255, 204));
        lbGender.setText("value");

        lbBirthDate.setFont(new java.awt.Font("Tahoma", 1, 11));
        lbBirthDate.setForeground(new java.awt.Color(204, 255, 204));
        lbBirthDate.setText("value");

        jLabel14.setForeground(new java.awt.Color(204, 255, 204));
        jLabel14.setText("Phone:");

        lbPhone.setFont(new java.awt.Font("Tahoma", 1, 11));
        lbPhone.setForeground(new java.awt.Color(204, 255, 204));
        lbPhone.setText("value");

        jLabel16.setForeground(new java.awt.Color(204, 255, 204));
        jLabel16.setText("Email:");

        lbEmail.setFont(new java.awt.Font("Tahoma", 1, 11));
        lbEmail.setForeground(new java.awt.Color(204, 255, 204));
        lbEmail.setText("value");

        jLabel18.setForeground(new java.awt.Color(204, 255, 204));
        jLabel18.setText("Address:");

        txaAddress.setBackground(new java.awt.Color(0, 51, 51));
        txaAddress.setColumns(20);
        txaAddress.setRows(5);
        txaAddress.setText("\n");
        txaAddress.setEnabled(false);
        jScrollPane1.setViewportView(txaAddress);

        bDelete.setText("Delete");
        bDelete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bDeleteActionPerformed(evt);
            }
        });

        bEdit.setText("Edit");
        bEdit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bEditActionPerformed(evt);
            }
        });

        jButton1.setText("Print");

        javax.swing.GroupLayout detailsLayout = new javax.swing.GroupLayout(details);
        details.setLayout(detailsLayout);
        detailsLayout.setHorizontalGroup(
            detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(detailsLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 524, Short.MAX_VALUE)
                    .addGroup(detailsLayout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(detailsLayout.createSequentialGroup()
                                .addGap(46, 46, 46)
                                .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lbName)
                                    .addGroup(detailsLayout.createSequentialGroup()
                                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel2)
                                            .addComponent(jLabel3)
                                            .addComponent(jLabel4)
                                            .addComponent(jLabel5)
                                            .addComponent(jLabel6)
                                            .addComponent(jLabel7))
                                        .addGap(28, 28, 28)
                                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lbBirthDate)
                                            .addComponent(lbGender)
                                            .addComponent(lbLevel)
                                            .addComponent(lbRole)
                                            .addComponent(lbDep)
                                            .addComponent(lbID)))))
                            .addGroup(detailsLayout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 312, Short.MAX_VALUE))))
                    .addGroup(detailsLayout.createSequentialGroup()
                        .addComponent(jLabel14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lbPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lbEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE))
                    .addComponent(jLabel18)
                    .addGroup(detailsLayout.createSequentialGroup()
                        .addComponent(bDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 260, Short.MAX_VALUE)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        detailsLayout.setVerticalGroup(
            detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(detailsLayout.createSequentialGroup()
                .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(detailsLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(detailsLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(lbName)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(lbID))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(lbDep))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(lbRole))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(lbLevel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(lbGender))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(lbBirthDate))
                        .addGap(51, 51, 51)
                        .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(lbPhone)
                    .addComponent(jLabel16)
                    .addComponent(lbEmail))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel18)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(detailsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(bDelete)
                    .addComponent(bEdit)
                    .addComponent(jButton1))
                .addContainerGap(24, Short.MAX_VALUE))
        );

        viewDetails.setViewportView(details);

        viewGrid.setLeftComponent(viewDetails);

        viewList.setPreferredSize(new java.awt.Dimension(300, 376));
        viewList.setLayout(new java.awt.BorderLayout());

        controler.setBackground(new java.awt.Color(51, 51, 51));
        controler.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 255, 204)));

        bBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ui/images/back-20.png"))); // NOI18N
        bBack.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bBackActionPerformed(evt);
            }
        });

        bNext.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ui/images/forward-20.png"))); // NOI18N
        bNext.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bNextActionPerformed(evt);
            }
        });

        cbPages.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4" }));
        cbPages.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbPagesActionPerformed(evt);
            }
        });

        jLabel1.setForeground(new java.awt.Color(204, 255, 204));
        jLabel1.setText("To:");

        javax.swing.GroupLayout controlerLayout = new javax.swing.GroupLayout(controler);
        controler.setLayout(controlerLayout);
        controlerLayout.setHorizontalGroup(
            controlerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(controlerLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(bBack)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(bNext)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 206, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cbPages, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        controlerLayout.setVerticalGroup(
            controlerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(controlerLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(controlerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(controlerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbPages, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel1))
                    .addGroup(controlerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(bNext)
                        .addComponent(bBack)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        viewList.add(controler, java.awt.BorderLayout.PAGE_START);

        employeeGrid.setLayout(new java.awt.GridLayout(0, 1));
        List.setViewportView(employeeGrid);

        viewList.add(List, java.awt.BorderLayout.CENTER);

        viewGrid.setRightComponent(viewList);

        add(viewGrid, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

private void bBackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bBackActionPerformed
    backAction();
}//GEN-LAST:event_bBackActionPerformed
    
private void bNextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bNextActionPerformed
    nextAction();
}//GEN-LAST:event_bNextActionPerformed
    
private void cbPagesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbPagesActionPerformed
    swithPageAction();
}//GEN-LAST:event_cbPagesActionPerformed
    
private void bDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bDeleteActionPerformed
    deleteAction();
}//GEN-LAST:event_bDeleteActionPerformed
    
private void bEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bEditActionPerformed
    showUpdate();
}//GEN-LAST:event_bEditActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane List;
    private javax.swing.JButton bBack;
    private javax.swing.JButton bDelete;
    private javax.swing.JButton bEdit;
    private javax.swing.JButton bNext;
    private javax.swing.JComboBox cbPages;
    private javax.swing.JPanel controler;
    private javax.swing.JPanel details;
    private javax.swing.JPanel employeeGrid;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JLabel lbBirthDate;
    private javax.swing.JLabel lbDep;
    private javax.swing.JLabel lbEmail;
    private javax.swing.JLabel lbGender;
    private javax.swing.JLabel lbID;
    private javax.swing.JLabel lbLevel;
    private javax.swing.JLabel lbName;
    private javax.swing.JLabel lbPhone;
    private javax.swing.JLabel lbPic;
    private javax.swing.JLabel lbRole;
    private javax.swing.JTextArea txaAddress;
    private javax.swing.JScrollPane viewDetails;
    private javax.swing.JSplitPane viewGrid;
    private javax.swing.JPanel viewList;
    // End of variables declaration//GEN-END:variables
}
